﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace DomainModel.Entities
{
    public class Album
    {
        [KeyAttribute]
        public int AlbumID { get; set; }

        public int ArtistID { get; set; }
        [ForeignKey("ArtistID")]
        public virtual Artist Artist { get; set; }

        public int? LargePictureID { get; set; }
        [ForeignKey("LargePictureID")]
        public virtual Picture LargePicture { get; set; }

        public int? SmallPictureID { get; set; }
        [ForeignKey("SmallPictureID")]
        public virtual Picture SmallPicture { get; set; }

        public string UserName { get; set; }       

         [Display(Name = "Album Name")]
        public string AlbumName { get; set; }       

         [Display(Name = "Album Release Year")]
        public string AlbumReleaseYear { get; set; }

        public DateTime? LastUpdate { get; set; }

        public bool IsApproved { get; set; }      

        public int HitCount { get; set; }      
        
        public virtual ICollection<Track> Tracks { get; set; }
       
    }
}
